Skip to content

fix: disable automatic TUI launch (#1066)#1072

Merged
JeremyDev87 merged 1 commit into
masterfrom
fix/1066-disable-tui-auto-launch
Mar 28, 2026
Merged

fix: disable automatic TUI launch (#1066)#1072
JeremyDev87 merged 1 commit into
masterfrom
fix/1066-disable-tui-auto-launch

Conversation

@JeremyDev87

Copy link
Copy Markdown
Owner

Summary

  • Remove TUI auto-launch from session-start.py hook (Step 7 block)
  • Remove TUI cleanup from stop.py hook
  • Delete hooks/lib/tui_launcher.py module and its test file
  • TUI source code (apps/mcp-server/src/tui/) is preserved for manual use

Closes #1066

Test plan

  • yarn prettier --write . — passed
  • npx tsc --noEmit — passed (no type errors)
  • yarn workspace codingbuddy test — 5327 tests passed
  • grep confirms no remaining tui_launcher references in plugin package

TUI companion auto-launch consumed excessive memory in multi-session
(taskMaestro) environments. Remove the launch mechanism from session-start
hook, cleanup from stop hook, and delete tui_launcher module and its tests.

TUI source code (apps/mcp-server/src/tui/) is preserved for manual use.
@vercel

vercel Bot commented Mar 28, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
codingbuddy-landing Ready Ready Preview, Comment Mar 28, 2026 9:59am

@JeremyDev87 JeremyDev87 left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review: APPROVE

CI Status

  • ALL 27/27 checks PASS — including e2e-plugin-hooks (3.11, 3.12), plugin-test, unit-test-check

Code Quality

  • Clean deletion — no leftover references to tui_launcher in any remaining code
  • No unused imports — all from tui_launcher import lines removed with their enclosing blocks
  • No dead code — complete removal of TUI launch (session-start.py) and cleanup (stop.py) blocks
  • No dangling state — state management code (_save_state, _load_state) removed with the module

Changed Files (4)

File Action Lines
hooks/lib/tui_launcher.py DELETED -257
tests/test_tui_launcher.py DELETED -400
hooks/session-start.py TUI launch block removed -16
hooks/stop.py TUI cleanup block removed -7

Net: -680 lines of dead code removed

Spec Compliance (#1066)

Acceptance Criteria Status
TUI가 세션 시작 시 자동 실행되지 않음 ✅ launch block removed from session-start.py
기존 TUI 관련 코드 정리 (dead code 제거) ✅ tui_launcher.py + test_tui_launcher.py deleted
stop hook의 TUI cleanup 로직도 함께 정리 ✅ cleanup_tui block removed from stop.py
멀티 세션 환경 메모리 사용량 감소 ✅ No more TUI node processes spawned per session

Issues Found: 0

Recommendation

APPROVE — 깔끔한 삭제 PR. 680줄의 dead code가 완전히 제거됨. 잔여 참조 없음. 멀티 세션 환경에서 TUI 프로세스로 인한 메모리 낭비 해결. 머지 준비 완료.

@JeremyDev87 JeremyDev87 self-assigned this Mar 28, 2026
@JeremyDev87 JeremyDev87 merged commit 2600f39 into master Mar 28, 2026
28 checks passed
@JeremyDev87 JeremyDev87 deleted the fix/1066-disable-tui-auto-launch branch March 28, 2026 10:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(plugin): disable automatic TUI launch to reduce memory usage in multi-session

1 participant